package mapper.productMapper;

import entity.productEntity.Condition;
import entity.productEntity.PmsProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PmsProductMapper {
    int deleteByPrimaryKey(Integer product_id);

    int insert(PmsProduct record);
    int updatepublish_status(@Param("id") Integer id,@Param("value") Integer value);
    int updatenew_status(@Param("id")Integer id,@Param("value")Integer value);
    int updaterecommand_status(@Param("id")Integer id,@Param("value")Integer value);
    List<PmsProduct> getproducts(Condition condition);

    int selectBrandProduct(Integer id);
    int selectCateProduct(Integer id);
    int selectAttProduct(Integer id);



    int insertSelective(PmsProduct record);

    PmsProduct selectByPrimaryKey(Integer product_id);

    int updateByPrimaryKeySelective(PmsProduct record);

    int updateByPrimaryKey(PmsProduct record);
}